package model.dao;

import model.Game;

public class DAOFactory 
{
	private static DAO<?>    dao;
	private static DAO<Game> gameDao;
	
	public static DAO<?> newDao( )
	{
		return dao;
	}
	
	public synchronized static DAO<Game> infGameDao( )
	{
		if( gameDao == null )
			gameDao = new GameDAO( );
		
		gameDao.renew( );
		
		return gameDao;
	}
}